<h1>Editing Author</h1>

<%= error_messages_for :author %>

<% form_for(:author, :url => author_path(@author), :html => { :method => :put }) do |f| %>
  <p>
    <b>Name</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <b>Dob</b><br />
    <%= f.text_field :dob %>
  </p>

  <p>
    <b>Nationality</b><br />
    <%= f.text_field :nationality %>
  </p>

  <p>
    <b>Residence</b><br />
    <%= f.text_field :residence %>
  </p>

  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', author_path(@author) %> |
<%= link_to 'Back', authors_path %>